/*
 * mpgfx.h
 *
 *  Created on: 2012-04-11
 *      Author: Aco
 */

#ifndef MPGFX_H_
#define MPGFX_H_

#define Character8x7 (87)
#define System3x5 (35)
#define font5x7 (57)
#define FontSystem5x7_v2 (58)

void _EMU_GFX_tick();

void Glcd_Init();
void Glcd_Fill(unsigned char pattern);
void Glcd_fill(unsigned char pattern);
void Glcd_Image(const unsigned char * img);
void Glcd_PartialImage(unsigned char x, unsigned char y, unsigned char dw, unsigned char dh, unsigned char srcw, unsigned char srch, const unsigned char * img);
void Glcd_Dot(unsigned char x, unsigned char y, char color);
void Glcd_Box(unsigned char x, unsigned char y, unsigned char w, unsigned char h, char color);
void Glcd_Rectangle(unsigned char x, unsigned char y, unsigned char w, unsigned char h, char color);
void Glcd_Rectangle_Round_Edges(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned char rad, char color);
void Glcd_Rectangle_Round_Edges_Fill(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned char rad, char color);
void Glcd_Line(unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, char color);
void Glcd_V_Line(unsigned char y1, unsigned char y2, unsigned char x, char color);
void Glcd_H_Line(unsigned char x1, unsigned char x2, unsigned char y, char color);
void Glcd_Circle(unsigned char x, unsigned char y, short radius, char color);
void Glcd_Circle_Fill(unsigned char x, unsigned char y, short radius, char color);
void Glcd_Set_Font(char fontID, char w, char h, char start);
void Glcd_Write_Text(const char * text, char a, char b, char c);

#endif /* MPGFX_H_ */
